#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTextEdit>
#include <QAction>
#include <QShortcut>
#include <QFileDialog>
#include <QTextStream>
#include <QMessageBox>
#include <QDebug>
#include <QLabel>
#include <QColorDialog>
#include <QFontDialog>
#include<QFont>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
private slots:
    void open_action_slot();
    void save_action_slot();
    void save_as_action_slot();
    void line_msg_slot();
    void font_color_slot();
    void font_style_slot();
    void count_ch_slot();
private:
    Ui::MainWindow *ui;
    QTextEdit * textEdit;
    QMenu *fileMenu;
    QMenu *editMenu;
    QAction *openAction;//打开文件
    QAction * saveAction;//保存文件
    QAction * saveAsAction;//另存为
    QAction *font_color;
    QAction *font_style;
    QLabel * line_msg,*encoding,*label_words,*osmsg;
    QString currentFile;
};

#endif // MAINWINDOW_H
